import {axios} from '@/utils/request'

// api接口列表
const api = {
    image: '/file-management/file-descriptor/upload',
    video: '/file-management/file-descriptor/upload'
}

/**
 * 上传图片
 * @param {*} params
 * @param {*} data
 */
export function image(params, data) {
    return axios({
        url: api.image,
        method: 'post',
        params,
        data
    })
}

/**
 * 上传视频
 * @param {*} params
 * @param {*} data
 */
export function video(params, data) {
    return axios({
        url: api.video,
        method: 'post',
        data
    })
}
